package com.aorise.mapper.halt;

import com.aorise.model.halt.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;


/**
* @Author:cat
* @Description 停机设备mybatis接口类
* @Date:Created in 2019-06-11
* @Modified By:
*/
@Mapper
@Component(value = "haltCameraMapper")
public interface HaltCameraMapper {

    /**
     * @Author:cat
     * @Description 根据停机记录ID查询停机设备
     * @params: map 查询条件Map
     * @Date:2019-06-11
     * @Return: List<HaltCameraModel> 停机设备集合
     * @Modified By:
     */
    List<HaltCameraModel> getHaltCameraByHaltId(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 新增停机设备信息
     * @params: haltCameraAddVO 停机设备信息
     * @Date:2019-06-11
     * @Return: Integer 影响行数
     * @Modified By:
     */
    Integer addHaltCamera(HaltCameraAddVO haltCameraAddVO) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 查询停机设备总条数
     * @params: map 查询条件Map
     * @Date:2019-06-12
     * @Return: Long 数据总条数
     * @Modified By:
     */
    Long getHaltCameraListTotalByPage(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 根据条件分页查询停机设备
     * @params: map 查询条件Map
     * @Date:2019-06-12
     * @Return: List<HaltCameraModel> 停机设备集合
     * @Modified By:
     */
    List<HaltCameraModel> getHaltCameraListByPage(Map<String, Object> map) throws DataAccessException;

}